<?php
/**
 * @version 1.0
 * @author jonathan <jo.link.noir@gmail.com>
 * @date 23-05-2010
 */
class U1_Display_Structure
{
	static public $displayStructures = array();

	/**
	 * @param string $indexStruct
	 */
	static public function getdisplay($indexStruct)
	{
		if (isset(self::$displayStructures[$indexStruct]))
			return self::$displayStructures[$indexStruct];
		else
		{
			$display = 'U1_Display_'.ucfirst($indexStruct);
			return self::$displayStructures[$indexStruct] = new $display;
		}
	}
}